{% extends 'base.html' %}
{% block body %}

    {% if parent %}
        <div class="comment-date small">
            <span class="comment-star">&#9733;</span>
            <span class="comment-points">{{ parent.points }} point{{ parent.points|pluralize }}</span> by {{ parent.nickname }} {{ parent.date|timesince }} ago
        </div>
        <div class="comment-text">{{ parent.text|capfirst|linebreaksbr }}</div>
        <br>
    {% endif %}
            
    <form class="comment-form" action="/comment/{{ postid }}/{{ parentid }}/{{ depth }}/{{ id }}" method="post"> 
        <label>Comment</label><br>
        <textarea class="text" name="text">{{ comment.text }}</textarea><br>
        <button type="submit">comment</button>
    </form>
            
{% endblock %}